<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"
	contentType="text/html; charset=UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html>
<html>
  <head>
    <base href="<%=basePath%>">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="shortcut icon" type="image/x-icon" href="img/favicon.ico">
    <title>二货GO—二货发布</title>
    
    <!-- 导入控制显示的css -->
    <link rel="stylesheet" href="css/publish.css">
    <!-- 导入控制行为的js -->
    <script type="text/javascript" src="js/jquery-2.1.4.min.js"></script>
    <script type="text/javascript" src="js/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="js/custom/publish.js"></script>
</head>
<body>
    <jsp:include page="frame.jsp"></jsp:include>
    
    <input type="hidden" id="memberId" value="${sessionScope.existUser.id}" />
    <div class="publishHead">
        <span class="sub_title">发布二货信息</span>
    </div>
    
    <div class="publishbody">
         
         <div class="publishTips">
             <img alt="horn" src="img/horn.png">
             <span>为共建真实可信的高校二手商品信息发布平台，即日起所有发布的二货商品信息需要真实有效，
                                                 若有用户举报该二货商品信息存在虚假内容，均会由管理员进行删除，不予展示，请用户遵守相关规定！</span>
         </div>
         
         <div class="baseMsg">
         
             <div class="rows_wrap">
                 <div class="rows_title">
                      <span>
                          <span class="rows_title_star">*</span>标题
                      </span>
                 </div>
                 <div class="rows_content">
                     <div class="tip" style="display:none">
                         <img alt="tip" src="img/tip.png">
                         <div class="tip_msg">
	                         <span>标题不能超过30字</span>
                         </div>
                     </div>
                     <div class="input_text_warp">
                         <input class="all_input" id="title" placeholder="请填写标题" type="text">
                     </div>
                 </div>
             </div>
             
             <div class="rows_wrap">
                 <div class="rows_title">
                      <span>
                          <span class="rows_title_star">*</span>二货详情
                      </span>
                 </div>
                 <div class="rows_content">
                     <div class="tip" style="display:none">
                         <img alt="tip" src="img/tip.png">
                         <div class="tip_msg">
	                         <span>二货详情不能超过120字</span>
                         </div>
                     </div>
                     <div class="input_text_warp">
                         <textarea class="all_textarea" id="detail" placeholder="请填写二货详情"></textarea>
                     </div>
                 </div>
             </div>
             
             <div class="rows_wrap ori_price">
                 <div class="rows_title">
                      <span>
                          <span class="rows_title_star">*</span>原价
                      </span>
                 </div>
                 <div class="rows_content">
                     <div class="tip" style="display:none">
                         <img alt="tip" src="img/tip.png">
                         <div class="tip_msg">
	                         <span>原价不能为0，且只能为数字</span>
                         </div>
                     </div>
                     <div class="input_text_warp">
                         <input class="all_input" id="oriPrice" placeholder="请填写原价（单位/元），最多支持两位小数" type="text">
                     </div>
                 </div>
             </div>
             
             <div class="rows_wrap">
                 <div class="rows_title">
                      <span>
                          <span class="rows_title_star">*</span>转让价
                      </span>
                 </div>
                 <div class="rows_content">
                     <div class="tip" style="display:none">
                         <img alt="tip" src="img/tip.png">
                         <div class="tip_msg">
	                         <span>转让价不能为0，且只能为数字</span>
                         </div>
                     </div>
                     <div class="input_text_warp">
                         <input class="all_input" id="transPrice" placeholder="请填写转让价（单位/元），最多支持两位小数" type="text">
                     </div>
                 </div>
             </div>
             
             <div class="rows_wrap">
                 <div class="rows_title">
                      <span>
                          <span class="rows_title_star">*</span>商品成色
                      </span>
                 </div>
                 <div class="rows_content">
                     <div class="tip" style="display:none">
                         <img alt="tip" src="img/tip.png">
                         <div class="tip_msg">
	                         <span>请选择一个二货成色</span>
                         </div>
                     </div>
                     <div class="input_text_warp">
                         <select class="all_select" id="quality">
                             <option value="">请选择一个二货成色</option>
                             <option value="50">五成新</option>
                             <option value="60">六成新</option>
                             <option value="70">七成新</option>
                             <option value="80">八成新</option>
                             <option value="85">八五新</option>
                             <option value="90">九成新</option>
                             <option value="95">九五新</option>
                             <option value="100">全新</option>
                         </select>
                     </div>
                 </div>
             </div>
             
             <div class="rows_wrap">
                 <div class="rows_title">
                      <span>
                          <span class="rows_title_star">*</span>所在地
                      </span>
                 </div>
                 <div class="rows_content">
                     <div class="tip" style="display:none">
                         <img alt="tip" src="img/tip.png">
                         <div class="tip_msg">
	                         <span>请选择所在地</span>
                         </div>
                     </div>
                     <div class="input_text_warp">
                         <select class="all_select province_select" id="s_province">
                             <option value="">省份</option>
                         </select>
                         <select class="all_select city_select" id="s_city">
                             <option value="">城市</option>
                         </select>
                         <select class="all_select city_select" id="s_school">
                             <option value="">高校</option>
                         </select>
                     </div>
                 </div>
             </div>
             
             <div class="rows_wrap">
                 <div class="rows_title">
                      <span>
                          <span class="rows_title_star">*</span>联系方式
                      </span>
                 </div>
                 <div class="rows_content">
                     <div class="tip" style="display:none">
                         <img alt="tip" src="img/tip.png">
                         <div class="tip_msg">
	                         <span>联系方式不能超过30字</span>
                         </div>
                     </div>
                     <div class="input_text_warp">
                         <input class="all_input" id="contactWay" placeholder="请填写联系方式，注明电话、QQ、Wechat" type="text">
                     </div>
                 </div>
             </div>
             
             <div class="rows_wrap">
                 <div class="rows_title">
                      <span>
                          <span class="rows_title_star">*</span>交易方式
                      </span>
                 </div>
                 <div class="rows_content">
                     <div class="tip" style="display:none">
                         <img alt="tip" src="img/tip.png">
                         <div class="tip_msg">
	                         <span>请选择一个交易方式</span>
                         </div>
                     </div>
                     <div class="input_text_warp">
                         <select class="all_select" id="tradeWay">
                             <option value="">请选择一个交易方式</option>
                             <option value="0">线上交易</option>
                             <option value="1">当面交易</option>
                         </select>
                     </div>
                 </div>
             </div>
             
             <div class="rows_wrap">
                 <div class="rows_title">
                      <span>
                          <span class="rows_title_star">*</span>商品分类
                      </span>
                 </div>
                 <div class="rows_content">
                     <div class="tip" style="display:none">
                         <img alt="tip" src="img/tip.png">
                         <div class="tip_msg">
	                         <span>请选择商品分类</span>
                         </div>
                     </div>
                     <div class="input_text_warp">
                         <select class="all_select one_cate_select" id="one_cate">
                             <option value="">一级分类</option>
                         </select>
                         <select class="all_select two_cate_select" id="two_cate">
                             <option value="">二级分类</option>
                         </select>
                         <select class="all_select three_cate_select" id="three_cate">
                             <option value="">三级分类</option>
                         </select>
                     </div>
                 </div>
             </div>
             
         </div>
         
   		 <div class="erhuoImgUpload">
    		 <span class="img_title">上传二货图片 </span>
    		 <div class="tip">
	             <img alt="tip" src="img/tip.png">
	             <div class="tip_msg">
	                  <span>图片大小不超过2M,图片格式支持PNG和JPG,最多上传四张,默认第一张为头图</span>
	             </div>
             </div>
    		 <div id="uploadImgFormDiv" class="uploadFormDiv">
                 <form id="uploadImgForm" name="uploadPicForm" enctype="multipart/form-data" action="fileupload.action" method="post">
			         <div class="imgDiv" style="display: inline;">        
					     <div class="zhanwei" style="display: block;">
						     <img src="img/upload.png" width="120px" height="100px">
					     </div>
			    	 </div>
					<input id="scan_img" class="scanImg" value="浏览..." type="button" style="background:#ED6D06;">
					<input class="uploadfile" name="upload" style="display:none" type="file">
					<label class="error" for="regist_code" style="display: none;">
           				<p></p>
       				</label>
        		</form>
	    	 </div>
   		</div>
   		
   		<div class="block_wrap">
	  	    <div class="submit_wrap">
	  	    	<span>发布</span>
	  	    </div>
  	    </div>
  	</div>
  	
  	<div class="toTop">
		<img src="img/indexImg/toTop.gif"/>
	</div>
  	
    <jsp:include page="foot.jsp"></jsp:include>
</body>
</html>